<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>The HTML Presentation Framework</title>
    <meta name="description" content="A framework for easily creating beautiful presentations using HTML">
    <meta name="author" content="Hakim El Hattab">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <style>
        html,body{
            width: 100%;
            height: 100%;
            background:#0A0F23;
        }
        *{
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body>
<div id="main" style="width: 100%;height:100%;"></div>
<script src="../../components/echarts-4.0.4.min.js"></script>
<script>
    var pieChart = echarts.init(document.getElementById('main'));
    var pieTitle = '近十年技术交易';
    var option = {
        title: {
            text:pieTitle,
            left: 'center',
            top: "0%",
            textStyle: {
                color: '#fff',
                fontSize: 22
            }
        },
        color:['#336c9c','#8ce8e7','#62cff1','#17d4ee','#4fac88','#59c293','#67c47b', "#37A2DA", "#32C5E9", "#67E0E3", "#9FE6B8","#34638b","#1b8a83","#36bdb4"],
        angleAxis: {
            type: 'category',
            data: ['2008', '2009', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017'],
            z: 10,
            axisLabel:{
                textStyle: {
                    color: '#fff',
                    fontSize: 16
                },
                margin: 40
            },
            axisTick:{
                show:false
            },
            axisLine:{
                show:false
            }
        },
        radiusAxis: {
            show:false
        },
        polar: {
            radius:['60']
        },
        series: [{
            type: 'bar',
            data: [3800,6100,9000,9900,16100,17900,23800,21700,19800,29900],
            coordinateSystem: 'polar',
            name: '技术交易额',
            label: {
                position:'inside',
                formatter:'{c}亿元'
            },
            stack: 'a'
        },{
            name:'技术合同份数',
            type:'pie',
            radius: ['40%', '50%'],
            label: {
                show:false,
                position:'inside',
                formatter:'{c}份'
            },
            data:[
                {value:30, name:'2008'},
                {value:60, name:'2010'},
                {value:80, name:'2009'},
                {value:200, name:'2011'},
                {value:300, name:'2012'},
                {value:420, name:'2013'},
                {value:540, name:'2014'},
                {value:660, name:'2015'},
                {value:740, name:'2016'},
                {value:850, name:'2017'}
            ]
        }],
        legend: {
            show: true,
            data: ['技术交易额', '技术合同份数'],
            left: '10%',
            top: '15%',
            orient: 'vertical',
            itemGap: 12, //图例每项之间的间隔
            itemWidth: 10,
            itemHeight: 10,
            icon: 'rect',
            textStyle: {
                color: '#fff',
                fontSize: 16
            }
        }
    };
    pieChart.setOption(option);
</script>
</body>
</html>
